/*************************************************************************
* 	interval.1.bas_fun.c : by R.Lie
*/

void lambda_1(const double * p, const double ** v, void * value)
{
	double * val = (double *)value;
	val[0] = (v[1][0] - p[0])/(v[1][0] - v[0][0]);
}

void lambda_2(const double * p, const double ** v, void * value)
{
	double * val = (double *)value;
	val[0] = (p[0] - v[0][0])/(v[1][0] - v[0][0]);
}

void gradient_lambda_1(const double * p, const double ** v, void * value)
{
	double * val = (double *)value;
	val[0] = -1.0/(v[1][0] - v[0][0]);
}

void gradient_lambda_2(const double * p, const double ** v, void * value)
{
	double * val = (double *)value;
	val[0] = 1.0/(v[1][0] - v[0][0]);
}

/*
*  end of file
**************************************************************************/
